﻿/*********************************************
* 命名空间: DataCode.Model
* 功 能： 用于pg数据库的实体模型
* 类 名： pg_lot11x5
* 作 者:  东腾
* 时 间： 2018/2/24 16:20:58 
**********************************************
*/
using System;
using Abp.Domain.Entities;
using Abp.NHibernate.EntityMappings;
using FluentNHibernate.Automapping;
using FluentNHibernate.Automapping.Alterations;

namespace DataCode.Model
{


    public class PgModelMap : EntityMap<PgModel>
    {
        public PgModelMap()
            : base("lot11x5record")
        {
            Id(x => x.Id).GeneratedBy.Increment();
            Map(x => x.OpenDate);
            Map(x => x.OpenValue);
            Map(x => x.OpenPeriods);
        }
    }


    public class PgModel:Entity
    {
        /// <summary>
        /// 开奖日期
        /// </summary>
        public virtual DateTime OpenDate { get; set; }
        /// <summary>
        /// 开奖号
        /// </summary>
        public virtual string OpenValue { get; set; }
        /// <summary>
        /// 开奖期数
        /// </summary>
        public virtual string OpenPeriods { get; set; }

    }
}
